Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 19, 2025

The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.

Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
(cherry picked from commit a4832f6)

Co-authored-by: Cody Maloney [email protected]


📚 Documentation preview 📚: https://cpython-previews--131476.org.readthedocs.build/

…eption (pythonGH-131118)

The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.

Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
(cherry picked from commit a4832f6)

Co-authored-by: Cody Maloney <[email protected]>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir awaiting review labels Mar 19, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Mar 19, 2025
@vstinner vstinner enabled auto-merge (squash) March 19, 2025 17:28
@vstinner vstinner merged commit 69db2eb into python:3.13 Mar 19, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants